package per.ace.configuration.demo.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import per.ace.configuration.demo.domain.Boy;

/**
 * @program: springbootDemo
 * @description: boy configuration
 * @author: ace
 * @Date: 2019-12-29 14:15
 **/
@Configuration
public class BoyConfiguration {

    @Bean
    public Boy boyBean(){
        return new Boy("alex",22);
    }
}
